Let geocache encoding type in GPX be case insensitive.
authorrobertlipe@gmail.com <robertlipe@gmail.com@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Mon, 12 Dec 2011 00:46:35 +0000 (00:46 +0000)
committerrobertlipe@gmail.com <robertlipe@gmail.com@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Mon, 12 Dec 2011 00:46:35 +0000 (00:46 +0000)
git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@4132 f51c46e8-681c-474f-0cfe-069cfd0219fb

gpsbabel/html.c
gpsbabel/kml.c
gpsbabel/palmdoc.c
gpsbabel/text.c

index ff1fba2d79bd3a45e19f1eeffce65d3d2811b9d5..9e21da9aaaa450c1abaf4627ad01cfac75a75a3d 100644 (file)
@@ -224,7 +224,7 @@ html_disp(const waypoint* wpt)
         char* t = NULL;
         int encoded = 0;
         encstr = xml_attribute(logpart, "encoded");
-        encoded = (encstr[0] != 'F');
+        encoded = (toupper(encstr[0]) != 'F');
 
         if (html_encrypt && encoded) {
           s = rot13(logpart->cdata);
index 660ac4e16048394a8d132931fcc3fa6eb5bf41c6..874a7cf677a355ea29dbc1eaebe0f6a2314525c4 100644 (file)
@@ -1314,7 +1314,7 @@ char* kml_geocache_get_logs(const waypoint* wpt)
       char* t = NULL;
       int encoded = 0;
       encstr = xml_attribute(logpart, "encoded");
-      encoded = (encstr[0] != 'F');
+      encoded = (toupper(encstr[0]) != 'F');
 
       if (html_encrypt && encoded) {
         s = rot13(logpart->cdata);
index b46581b331b8d0c42d39c74b7f05bef3c89b68ec..4fa0a8f257d9db811e5f8d48b8f7f4dee029e66b 100644 (file)
@@ -549,7 +549,7 @@ palmdoc_disp(const waypoint *wpt)
         char *s = NULL;
         int encoded = 0;
         encstr = xml_attribute(logpart, "encoded");
-        encoded = (encstr[0] != 'F');
+        encoded = (toupper(encstr[0]) != 'F');
 
         if (palm_encrypt && encoded) {
           s = rot13(logpart->cdata);
index bad61f755a123d124044a43aa77f4530fe10d1a2..acb3be9555bac13f2208cdacda8e010bd8c82c03 100644 (file)
@@ -238,7 +238,7 @@ text_disp(const waypoint *wpt)
         char *s = NULL;
         int encoded = 0;
         encstr = xml_attribute(logpart, "encoded");
-        encoded = (encstr[0] != 'F');
+        encoded = (toupper(encstr[0]) != 'F');
 
         if (txt_encrypt && encoded) {
           s = rot13(logpart->cdata);